package primary.code04_List;

public class RandomNode {
    public int data;
    public RandomNode next;
    public RandomNode random;

    public RandomNode() {
    }

    public RandomNode(int data) {
        this.data = data;
    }

    public RandomNode(int data, RandomNode next, RandomNode random) {
        this.data = data;
        this.next = next;
        this.random = random;
    }

    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    public RandomNode getNext() {
        return next;
    }

    public void setNext(RandomNode next) {
        this.next = next;
    }

    public RandomNode getRandom() {
        return random;
    }

    public void setRandom(RandomNode random) {
        this.random = random;
    }
}
